﻿<%@ Page Language="C#" MasterPageFile="~/ClientSite.Master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="SES.CMS.Register" Title="Untitled Page" %>

<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<%@ Register Src="Module/ucLeftMenu.ascx" TagName="ucLeftMenu" TagPrefix="uc2" %>
<%@ Register Src="Module/ucRightMenu.ascx" TagName="ucRightMenu" TagPrefix="uc3" %>
<%@ Register Src="Module/ucBreadcrumb.ascx" TagName="ucBreadcrumb" TagPrefix="uc5" %>
<%@ Register Src="Module/ucHoTro.ascx" TagName="ucHoTro" TagPrefix="uc6" %>
<%@ Register Src="Module/ucShopInfo.ascx" TagName="ucShopInfo" TagPrefix="uc7" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            height: 24px;
        }
        #RegisterForm
        {
            margin: 0 30px;
        }
        .done
        {
            background: url( "images/done.png" ) no-repeat;
            width: 101px;
            height: 31px;
            border: none;
        }
        .txtcapcha
        {
            clear: both;
            margin-left: 0px;
        }
        .imgCapcha
        {
            width: 108px;
            height: 31px;
            margin: 0;
            padding: 0;
            margin-left: -170px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="Style-2-Left">
        <uc2:ucLeftMenu ID="ucLeftMenu1" runat="server" />
        <uc7:ucShopInfo ID="ucShopInfo1" runat="server" />
        <uc6:ucHoTro ID="ucHoTro1" runat="server" />
    </div>
    <div class="Style-2-Right">
        <uc5:ucBreadcrumb runat="server" ID="brc1" />
        <div id="RegisterForm">
            <h3 style="margin-bottom: 20px; margin-top: 0px; padding-top: 0px;">
                ĐĂNG KÝ THÀNH VIÊN</h3>
            <table class="pmb-table">
                <tbody>
                    <tr>
                        <td>
                            <span>Tên hiển thị&nbsp;<font color="red">*</font></span>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtClientName" CssClass="form_control" Style="width: 240px"
                                type="text" TabIndex="1"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Username&nbsp;<font color="red">*</font></span>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtUsername" CssClass="form_control" Style="width: 240px"
                                type="text" TabIndex="2"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtUsername" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Mật khẩu&nbsp;<font color="red">*</font></span>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtPassword" CssClass="form_control" Style="width: 240px"
                                type="text" TextMode="Password" TabIndex="3"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtPassword" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <span>Xác nhận mật khẩu&nbsp;<font color="red">*</font></span>
                        </td>
                        <td class="style1">
                            <asp:TextBox runat="server" ID="txtRePassword" CssClass="form_control" Style="width: 240px"
                                type="text" TextMode="Password" TabIndex="4" OnTextChanged="txtRePassword_TextChanged"></asp:TextBox>
                        </td>
                        <td class="style1">
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtRePassword"
                                ControlToValidate="txtPassword" ErrorMessage="Mật khẩu không khớp" 
                                Display="Dynamic"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Email&nbsp;<font color="red">*</font></span>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtEmail" CssClass="form_control" Style="width: 240px"
                                type="text" TabIndex="5"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                Display="Dynamic" ErrorMessage="Bạn phải nhập đúng Email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                ></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Điện thoại&nbsp;<font color="red">*</font></span>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtPhone" CssClass="form_control" Style="width: 240px"
                                type="text" TabIndex="6"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Di động&nbsp;<font color="red">*</font></span>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtMobile" CssClass="form_control" Style="width: 240px"
                                type="text" TabIndex="7"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Địa chỉ </span>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtAddress" CssClass="form_control" Style="width: 240px"
                                type="text" TabIndex="8"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>Mã bảo vệ: </span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtbv" runat="server" Width="70px" Height="20px" CssClass="txtcapcha" />
                            <asp:Label ID="Label5" Text=" " Width="90px" runat="server"></asp:Label>
                        </td>
                        <td style="text-align: left;">
                            <cc1:CaptchaControl CssClass="imgCapcha" ID="ccJoin" runat="server" validateIntegratedModeConfiguration="false"
                                CaptchaHeight="31" CaptchaWidth="90" CaptchaBackgroundNoise="Extreme" CaptchaLength="5" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button runat="server" ID="btnXacNhan" Text="" class="done" OnClick="btnXacNhan_Click"
                                TabIndex="10" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</asp:Content>
